//按钮点击事件
import { base, ajax, toast, print, output, printer, getBusinessInfo, cardCache } from 'nc-lightapp-front';
import api from '../../../common/api';
import config from '../config';
const { setDefData } = cardCache;

export default function (props, key, text, record, index) {
    switch (key) {
        case 'table_inner_edit':
            this.onEditBill(record, index);
            break;

        case 'table_inner_copy':
            this.onCopyBill(record, index);
            break;

        case 'table_inner_submit':
            this.onSubmitBill(record, index);
            break;

        case 'table_inner_retrieve':
            this.onRetrieveBill(record, index);
            break;

        case 'table_inner_delete':
            this.onDeleteBill(record, index);
            break;
        default:
            break;
    }
}
